<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Homepage/style.css">
<link href="__PUBLIC__/css/findpw/style.css" type="text/css" rel="stylesheet"></link>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script>
$(function(){
	

  $(document).keypress(function(e) { 
  // 回车键事件 
   if(e.which == 13) { 
		$('#submit').trigger("click");
   } 
   })
  
  $('#submit').click(function(){
 
     psw=$("#psw").val();
     repsw= $("#repsw").val();
	 if(psw==''){
		alert("密码不能为空");
		return false;
	 }else if(psw.length<6){
		alert("密码长度不能少于6位");
		return false;
	 }else if(psw!=repsw){
		alert("两次密码不一致");
		return false;
	 }
     $.ajax({
             type: "POST",
             url: "{:U('oper')}",
			 data: {from:3,psw:psw,repsw:repsw},
			 dataType: "text",
             success: function(data){
					 if(data==1){
						window.location.href="{:U('pswok')}";
						
						}			 
					 }								   
			})	
	}) 
  })

</script>
</head>
<body>
	<div class="menu">
		<include file="Public/home_header" />
		<div class="menu1">
			<form  name="myform" id="myform"  method="POST">
			<p class="title">找回密码</p>
			<table class="pwche_title1">
			<tr><td class="pwche_title2" colspan=3>请输入新密码,重置成功后可使用新密码登录:</td></tr>
			<tr><td class="pwche_password">新密码:</td><td class="pwche_text"><input type="password" name="psw" id="psw"></td></tr>
			<tr><td class="pwche_password">确认新密码:</td><td class="pwche_text"><input type="password" name="repsw"id="repsw"></td></tr>
			<tr><td></td><td class="pwche_sure" ><div id="submit" >确&nbsp&nbsp定</div></td></tr>
			</table>
		</div>
		<include file="Public/home_footer" />
	</div>
</body>
</html>